INCLUDEPATH += $$PWD

# Qt版本检测和兼容性配置
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 15) {
    # Qt6 配置
    QT += network
    DEFINES += QT_DEPRECATED_WARNINGS
} else {
    # Qt5 配置
    QT += network
    DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000
}

SOURCES += \
    $$PWD/QsUdp.cpp \
    $$PWD/QsUdpReceiver.cpp \
    $$PWD/QsUdpManager.cpp

HEADERS += \
    $$PWD/QsUdp.h \
    $$PWD/QsUdpGlobal.h \
    $$PWD/QsUdpReceiver.h \
    $$PWD/QsUdpManager.h

OTHER_FILES += \
    $$PWD/QsUdpChanges.txt \
    $$PWD/QsUdpExample.cpp 